home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-20 / nosvw.zip / DIALER < prev    next >
Text File  |  1991-09-18  |  3KB  |  88 lines

  1. ======                                              NOSview [137]
  2. dialer
  3. ======
  4.  
  5. There are two different syntaxes for the 'dialer' command,
  6. depending on the version of NOS:
  7.  
  8. _________________________________________________________________
  9. dialer <interface> <seconds> <host> <dialer_file>
  10. OR
  11. dialer <interface> [<dialer_file> [<seconds> [<pings> [<host>]]]]
  12. _________________________________________________________________
  13. Set up an autodialer session for the interface.  Whenever the
  14. interface is idle for the interval in <seconds>, the autodialer
  15. will ping the <hostid>.  If there is no answer after <pings>
  16. attempts, the autodialer will execute the special commands
  17. contained in the <dialer_file>.
  18.  
  19. If the interval in <seconds> is zero, a previous dialer command
  20. process will be removed.  If the number of <pings> is zero, the
  21. <dialer_file> will be executed without pinging the <host>.
  22.  
  23. The file may have any valid name, and must be located in the NOS
  24. root directory.  The dialer commands in the file are the
  25. following:
  26.  
  27. >> Examples:  dialer sl0 20 ns9tel ns9tel.dia
  28.               dialer sl0 ns9tel.dia 30 10 ns9tel
  29.  
  30.  
  31. ====================
  32. DIALER FILE COMMANDS
  33. ====================
  34.  
  35. -----------------------------------------------------------------
  36. control down|up
  37. -----------------------------------------------------------------
  38. Control the 'asy' interface.  The 'down' option drops DTR and
  39. RTS.  The 'up' option asserts DTR and RTS.
  40.  
  41. >>  Example:  control down
  42.  
  43.  
  44. -----------------------------------------------------------------
  45. send "<string>"
  46. -----------------------------------------------------------------
  47. This dialer command will write the specified string to the
  48. interface. The string quote marks are required, and the string
  49. may not contain embedded control characters.  However, the
  50. standard C string escape sequences are recognized (but \0 should
  51. not be used).
  52.  
  53.  
  54. >> Example:  send "atdt555-1212"
  55.  
  56.  
  57. -----------------------------------------------------------------
  58. speed [ 9600 | 4800 | 2400 | 1200 | 300 ]
  59. -----------------------------------------------------------------
  60. This command sets the speed of the interface to one of the
  61. available speeds.  If the speed is missing, the speed will be
  62. displayed in the dialer session window.
  63.  
  64. >> Example:  speed 1200
  65.  
  66.  
  67. -----------------------------------------------------------------
  68. wait <milliseconds> [ "test_string" ] [<speed>]
  69. -----------------------------------------------------------------
  70. If only the time is specified, the dialer pauses for the desired
  71. number of milliseconds.  Otherwise, the dialer reads until the
  72. <test_ string> is detected on the interface.
  73.  
  74. If the string is not detected within the desired time, the
  75. autodialer will reset.  The string quote marks are required, and
  76. the string may not contain embedded control characters. However,
  77. the standard C string escape sequences are recognized (but \0
  78. should not be used).
  79.  
  80. If the <speed> parameter is specified, the dialer will continue
  81. to read characters until a non-digit is detected.  The string
  82. read is converted to an integer, and used to set the interface
  83. speed.  If the trailing non-digit is not detected within the
  84. desired time, or the integer value is not a valid speed, the
  85. autodialer will reset.
  86.  
  87. >> Example:  wait 45000 "CONNECT" 1200
  88.